import {defaultAxios as request } from '@/utils/http/index.js';
var api = "/api/tdengine/mocktask";



export function addTaskInfo(data = {},timeout=200000) {
  return request({
    url: api + '/addTaskInfo',
    method: 'post',
    data,
    timeout: timeout
  });
}

export function readRealData(data = {},timeout=200000) {
  return request({
    url: api + '/readRealData',
    method: 'post',
    data,
    timeout: timeout
  });
}


export function searchTaskInfo(data = {},timeout=200000) {
    return request({
      url: api + '/searchTaskInfo',
      method: 'post',
      data,
      timeout: timeout
    });
  }
export function deleteTask(data = {},timeout=200000) {
    return request({
      url: api + '/deleteTask',
      method: 'post',
      data,
      timeout: timeout
    });
}

export function startTask(data = {},timeout=200000) {
    return request({
      url: api + '/startTask',
      method: 'post',
      data,
      timeout: timeout
    });
}
export function stopTask(data = {},timeout=200000) {
    return request({
      url: api + '/stopTask',
      method: 'post',
      data,
      timeout: timeout
    });
}
export function startAllTask(data = {},timeout=200000) {
    return request({
      url: api + '/startAllTask',
      method: 'post',
      data,
      timeout: timeout
    });
}
export function stopAllTask(data = {},timeout=200000) {
    return request({
      url: api + '/stopAllTask',
      method: 'post',
      data,
      timeout: timeout
    });
}

export function batchInsertInfoWrite(data = {},timeout=200000000) {
    return request({
      url: api + '/batchInsertInfoWrite',
      method: 'post',
      data,
      timeout: timeout
    });
}

export function getDoingCount(data = {},timeout=2000000) {
    return request({
      url: api + '/getDoingCount',
      method: 'get',
      params: data,
      timeout: timeout
    });
}


  


